import { setStorageSync, getStorageSync } from '@tarojs/taro';

export default function idCreator() {
  let id = parseInt(getStorageSync('id_Max') || '0') || 0;
  id += 1;
  setStorageSync('id_Max', id.toString());
  return id;
}
